function selectAll(baseId,etat) {
	var checkboxes = document.getElementsByName(baseId+'[]');
	for(i=0;i<checkboxes.length;i++) {
		checkboxes[i].checked = etat;
	}
}

//~ function visibilite(BaseName)
//~ {
//~ var targetElement;
//~ targetElement = document.getElementById(thingId) ;
//~ if (targetElement.style.display == "none")
//~ {
//~ targetElement.style.display = "" ;
//~ } else {
//~ targetElement.style.display = "none" ;
//~ }
//~ }
